import 'dart:core';

/// @date 2020/08/26  15:39
/// @author 程志强
/// @des

class User {
  final String name;
  final String email;

  User(this.name, this.email);

  User.formJson(Map<String, dynamic> json)
      : name = json['name'],
        email = json['email'];

  Map<String, dynamic> toJson() =>
      <String, dynamic>{'name': name, 'email': email};
}
